const Controller = require('egg').Controller

class HomeController extends Controller {
    async index() {
        const ctx = this.ctx
        const homeData = await ctx.service.home.getHomeData()
        await ctx.render('home/home.html', { 
            catList: homeData.catList, 
            firstList: homeData.firstList, 
            sliderList: homeData.sliderList
        })
    }
}

module.exports = HomeController